package org.example.wumeng.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import org.apache.ibatis.annotations.Mapper;
import org.example.wumeng.pojo.PrescriptionCategory;

import java.util.List;
import java.util.Map;

/**
 * 方剂分类Mapper
 */
@Mapper
public interface T_prescriptionCategoryMapper extends BaseMapper<PrescriptionCategory> {

    /**
     * 获取方剂分类统计（包含方剂数量）
     */
    List<Map<String, Object>> getCategoryStatistics();
    List<Map<String, Object>> getPrescriptionsByCategory(String categoryName);
}
